<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false" %>

<nav class="navbar navbar-inverse navbar-expand-lg" role="navigation">
  <a class="navbar-brand" href="#">学生信息管理系统</a>
  <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-collapse-01"></button>
  <div class="collapse navbar-collapse" id="navbar-collapse-01">
  <ul class="nav navbar-nav mr-auto">
			<li><a href="/studentServlet.do?flag=selectCourseList&pageIndex=1&type=-1"><strong>选课</strong></a>
			<li><a href="/studentServlet.do?flag=selectedCourse&pageIndex=1"><strong>查看选课结果</strong></a>
			
			<li><a href="/studentServlet.do?flag=ExitCourse&pageIndex=1"><strong>退选</strong></a>
			<li><a href="/studentServlet.do?flag=FindOwnGrade&pageIndex=1"><strong>查看已修课程</strong></a>
			<li><a href="/StudentHandler/queryvitastu/${sessionScope.sid }"><strong>管理个人信息</strong></a>
    </ul>
	<p class="navbar-text navbar-right">你好！${sessionScope.sname}<a href="javascript:logout();" class="navbar-link">注销</a></p>
	<!--
    <ul class="nav navbar-nav mr-auto">
      <li class="active"><a href="#fakelink">Products</a></li>
      <li><a href="#fakelink">Features</a></li>
    </ul>-->
  </div> <!--/.navbar-collapse -->
</nav><!-- /navbar -->
<script type="text/javascript">

	function logout() {
		if(confirm("确定要注销吗?")){
			location.href="/teacherServlet.do?flag=logout";
		}
	}

</script>



